#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include "string.h"
#include "medecin.h"
#include <stdlib.h>
#include <stdio.h>
#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"


void on_button1_clicked (GtkWidget *objet_graphique,gpointer user_data)
{
//condition
		GtkWidget *window14;
                GtkWidget *window1;
                window1 = lookup_widget(objet_graphique,"window1");
                gtk_widget_hide(window1);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button2_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window3;
                GtkWidget *window2;
                window2 = lookup_widget(objet_graphique,"window2");
                gtk_widget_hide(window2);
                window3 = create_window3();
		gtk_widget_show(window3);
}


void on_button3_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window5;
                GtkWidget *window2;
                window2 = lookup_widget(objet_graphique,"window2");
                gtk_widget_hide(window2);
                window5 = create_window5();
		gtk_widget_show(window5);
}


void on_button4_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window4;
                GtkWidget *window2;
                window2 = lookup_widget(objet_graphique,"window2");
                gtk_widget_hide(window2);
                window4 = create_window4();
		gtk_widget_show(window4);
}


void on_button5_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}

/* boutton afficher*/
void on_button11_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window23;
                GtkWidget *window3;
                window3 = lookup_widget(objet_graphique,"window3");
                gtk_widget_hide(window3);
                window23 = create_window23();
		gtk_widget_show(window23);

	Medecin M;
	char chemin []="medecin.txt";
	GtkWidget *label113;
	label113= lookup_widget(GTK_WIDGET(window23),"label113");
	char temp[10000]="";
	char buf[200]="";	
	char buf0[50]="NOM: ";
	char buf1[50]="PRENOM: ";
	char buf2[50]="SEXE: ";
	char buf3[50]="ROLE: ";
	char buf4[50]="CIN: ";
	char buf5[50]="AGE: ";
	char buf6[50]="ID: ";
	char buf7[50]="Date De Naissance: ";
	char buf8[50]="Date D'Embauche: ";
FILE*f;
f=fopen(chemin,"rb");
if(f!=NULL)
{
strcpy (M.nom," " ) ;
strcpy(M.prenom," ");
M.age=0;
M.cin=0;
strcpy(M.role," ");
M.ID=0;
strcpy(M.sexe," ");
M.date_embauche.jour=0;
M.date_embauche.mois=0;
M.date_embauche.annee=0;
M.date_naissance.jour=0;
M.date_naissance.mois=0;
M.date_naissance.annee=0;


   fread(&M,sizeof(Medecin),1,f);
   do
  {
   sprintf(buf,"%s %s  %s %s  %s %s  %s %ld  %s %d  %s %ld  %s %ld  %s %d %d %d  %s %d %d %d",buf0,M.nom,buf1,M.prenom,buf2,M.sexe,buf3,M.role,buf4,M.cin,buf5,
M.age,buf6,M.ID,buf7,M.date_naissance.jour,M.date_naissance.mois,
M.date_naissance.annee,buf8,M.date_embauche.jour,M.date_embauche.mois,M.date_embauche.annee);
 strcat(temp,buf);
strcat(temp,"\n");
 }
   while(((fread(&M,sizeof(Medecin),1,f))!=0)&&(feof(f)!=1));
}

fclose(f);

gtk_label_set_text(GTK_LABEL(label113),temp);
}

//initialisation
void on_button12_clicked(GtkWidget *objet_graphique,gpointer user_data)
{


                GtkWidget *window29;
                GtkWidget *window3;
GtkWidget *label123;
                window3 = lookup_widget(objet_graphique,"window3");
                gtk_widget_hide(window3);
                window29 = create_window29();
		gtk_widget_show(window29);





char fichier_medecin[]="medecin.txt";
      
char tmp[50];
FILE *f;
f=fopen(fichier_medecin,"wb");
fclose(f);
 
label123= lookup_widget(GTK_WIDGET(window29),"label123");
strcat(tmp,"le fichier medecin est initialiser");
 gtk_label_set_text(GTK_LABEL(label123),tmp);
           


}


void on_button8_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window17;
                GtkWidget *window3;
                window3 = lookup_widget(objet_graphique,"window3");
                gtk_widget_hide(window3);
                window17 = create_window17();
		gtk_widget_show(window17);
}


void on_button10_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window26;
                GtkWidget *window3;
                window3 = lookup_widget(objet_graphique,"window3");
                gtk_widget_hide(window3);
                window26 = create_window26();
		gtk_widget_show(window26);



}

//archive
void on_button9_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window20;//declaration
                GtkWidget *window3;
                window3 = lookup_widget(objet_graphique,"window3");//chercher ou est la fenetre ou le label
                gtk_widget_hide(window3);//fermer
                window20 = create_window20();//cree
		gtk_widget_show(window20);//afficher

        char archive_medecin[]="archive_medecin.txt";
        Medecin M;
        GtkWidget *label110;//declaration
	label110= lookup_widget(GTK_WIDGET(window20),"label110");//
        char temp[10000]="";
        char buf[200]="";	
	char buf0[50]="NOM: ";
	char buf1[50]="PRENOM: ";
	char buf2[50]="SEXE: ";
	char buf3[50]="ROLE: ";
	char buf4[50]="CIN: ";
	char buf5[50]="AGE: ";
	char buf6[50]="ID: ";
	char buf7[50]="Date De Naissance: ";
	char buf8[50]="Date D'Embauche: ";
FILE *a;
a=fopen(archive_medecin,"rb");
if(a!=NULL)
{
while(fread(&M,sizeof(Medecin),1,a)!=0)
{
 sprintf(buf,"%s %s  %s %s  %s %s  %s %ld  %s %d  %s %ld  %s %ld  %s %d %d %d  %s %d %d %d",buf0,M.nom,buf1,M.prenom,buf2,M.sexe,buf3,M.role,buf4,M.cin,buf5,
M.age,buf6,M.ID,buf7,M.date_naissance.jour,M.date_naissance.mois,
M.date_naissance.annee,buf8,M.date_embauche.jour,M.date_embauche.mois,M.date_embauche.annee);
strcat(temp,buf);
strcat(temp,"\n");
}
}

fclose(a);





gtk_label_set_text(GTK_LABEL(label110),temp);//ecrire le tmp dans le label
}


void on_button7_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window9;
                GtkWidget *window3;
                window3 = lookup_widget(objet_graphique,"window3");
                gtk_widget_hide(window3);
                window9 = create_window9();
		gtk_widget_show(window9);
}


void on_button6_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window6;
                GtkWidget *window3;
                window3 = lookup_widget(objet_graphique,"window3");
                gtk_widget_hide(window3);
                window6 = create_window6();
		gtk_widget_show(window6);
}


void on_button14_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window8;
                GtkWidget *window4;
                window4 = lookup_widget(objet_graphique,"window4");
                gtk_widget_hide(window4);
                window8 = create_window8();
		gtk_widget_show(window8);
}


void on_button15_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window11;
                GtkWidget *window4;
                window4 = lookup_widget(objet_graphique,"window4");
                gtk_widget_hide(window4);
                window11 = create_window11();
		gtk_widget_show(window11);
}


void on_button16_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window19;
                GtkWidget *window4;
                window4 = lookup_widget(objet_graphique,"window4");
                gtk_widget_hide(window4);
                window19 = create_window19();
		gtk_widget_show(window19);
}


void on_button17_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window21;
                GtkWidget *window4;
                window4 = lookup_widget(objet_graphique,"window4");
                gtk_widget_hide(window4);
                window21 = create_window21();
		gtk_widget_show(window21);
}


void on_button18_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window28;
                GtkWidget *window4;
                window4 = lookup_widget(objet_graphique,"window4");
                gtk_widget_hide(window4);
                window28 = create_window28();
		gtk_widget_show(window28);
}


void on_button19_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window24;
                GtkWidget *window4;
                window4 = lookup_widget(objet_graphique,"window4");
                gtk_widget_hide(window4);
                window24 = create_window24();
		gtk_widget_show(window24);

}


void on_button20_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button21_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window7;
                GtkWidget *window5;
                window5 = lookup_widget(objet_graphique,"window5");
                gtk_widget_hide(window5);
                window7 = create_window7();
		gtk_widget_show(window7);
}


void on_button22_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window10;
                GtkWidget *window5;
                window5 = lookup_widget(objet_graphique,"window5");
                gtk_widget_hide(window5);
                window10 = create_window10();
		gtk_widget_show(window10);
}


void on_button23_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window18;
                GtkWidget *window5;
                window5 = lookup_widget(objet_graphique,"window5");
                gtk_widget_hide(window5);
                window18 = create_window18();
		gtk_widget_show(window18);
}


void on_button24_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window22;
                GtkWidget *window5;
                window5 = lookup_widget(objet_graphique,"window5");
                gtk_widget_hide(window5);
                window22 = create_window22();
		gtk_widget_show(window22);
}


void on_button25_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window27;
                GtkWidget *window5;
                window5 = lookup_widget(objet_graphique,"window5");
                gtk_widget_hide(window5);
                window27 = create_window27();
		gtk_widget_show(window27);
}


void on_button26_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window23;
                GtkWidget *window5;
                window5 = lookup_widget(objet_graphique,"window5");
                gtk_widget_hide(window5);
                window23 = create_window23();
		gtk_widget_show(window23);
}


void on_button27_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}

/* boutton pour enregister le medecin*/
void on_button28_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

	Medecin M;
//	dateN D1;
//	dateE D2;
	char chemin[]="medecin.txt";
	int n=0;
	GtkWidget *entry3;
	GtkWidget *entry4;
	GtkWidget *entry5;
	GtkWidget *entry6;
	GtkWidget *entry7;
	GtkWidget *entry8;
	GtkWidget *entry9;
	GtkWidget *entry10;
	GtkWidget *entry11;
	GtkWidget *entry12;
	GtkWidget *entry13;
	GtkWidget *entry14;
	GtkWidget *entry15;

	entry3= lookup_widget(objet_graphique,"entry3");
	entry4= lookup_widget(objet_graphique,"entry4");
	entry5= lookup_widget(objet_graphique,"entry5");
	entry6= lookup_widget(objet_graphique,"entry6");
	entry7= lookup_widget(objet_graphique,"entry7");
	entry8= lookup_widget(objet_graphique,"entry8");
	entry9= lookup_widget(objet_graphique,"entry9");
	entry10= lookup_widget(objet_graphique,"entry10");
	entry11= lookup_widget(objet_graphique,"entry11");
	entry12= lookup_widget(objet_graphique,"entry12");
	entry13= lookup_widget(objet_graphique,"entry13");
	entry14= lookup_widget(objet_graphique,"entry14");
	entry15= lookup_widget(objet_graphique,"entry15");

	strcpy(M.nom,gtk_entry_get_text(GTK_ENTRY(entry3)));
	strcpy(M.prenom,gtk_entry_get_text(GTK_ENTRY(entry4)));
	strcpy(M.sexe,gtk_entry_get_text(GTK_ENTRY(entry5)));
	strcpy(M.role,gtk_entry_get_text(GTK_ENTRY(entry6)));
	M.cin= atoi( gtk_entry_get_text(GTK_ENTRY(entry7)));
	M.age= atoi( gtk_entry_get_text(GTK_ENTRY(entry8)));
	M.ID= atoi ( gtk_entry_get_text(GTK_ENTRY(entry9)));
	M.date_embauche.jour=atoi( gtk_entry_get_text(GTK_ENTRY(entry10)));
	M.date_embauche.mois=atoi( gtk_entry_get_text(GTK_ENTRY(entry11)));
	M.date_embauche.annee=atoi( gtk_entry_get_text(GTK_ENTRY(entry12)));
	M.date_naissance.jour=atoi( gtk_entry_get_text(GTK_ENTRY(entry13)));
	M.date_naissance.mois=atoi( gtk_entry_get_text(GTK_ENTRY(entry14)));
	M.date_naissance.annee=atoi( gtk_entry_get_text(GTK_ENTRY(entry15)));

	enregistrer_medecin(chemin,&M,&n);

}


void on_button29_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button30_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button31_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
//condition
		GtkWidget *window12;
                GtkWidget *window9;
                window9 = lookup_widget(objet_graphique,"window9");
                gtk_widget_hide(window9);
                window12 = create_window12();
		gtk_widget_show(window12);
}


void on_button32_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button33_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button34_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button52_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button53_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button54_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button55_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button56_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button57_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button58_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button59_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button60_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button65_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window15;
                GtkWidget *window14;
                window14 = lookup_widget(objet_graphique,"window14");
                gtk_widget_hide(window14);
                window15 = create_window15();
		gtk_widget_show(window15);
}


void on_Database_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window2;
                GtkWidget *window14;
                window14 = lookup_widget(objet_graphique,"window14");
                gtk_widget_hide(window14);
                window2 = create_window2();
		gtk_widget_show(window2);
}


void on_EXIT_clicked   (GtkWidget *objet_graphique,gpointer user_data)
{
	gtk_main_quit();
}


void on_visualiser_parcours_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_Home_clicked   (GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button89_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button90_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button91_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button92_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button93_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button94_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button95_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button96_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button97_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}

/*boutton de supression medecin*/
void on_button98_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
	int ID;
	GtkWidget *entry151;
	entry151= lookup_widget(objet_graphique,"entry151");
	ID= atoi( gtk_entry_get_text(GTK_ENTRY(entry151)));
	supprimer_medecin_ID( "medecin.txt", ID);
	
}


void on_button99_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button100_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button101_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window20;
                window20 = lookup_widget(objet_graphique,"window20");
                gtk_widget_hide(window20);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button102_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window21;
                window21 = lookup_widget(objet_graphique,"window21");
                gtk_widget_hide(window21);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button103_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window22;
                window22 = lookup_widget(objet_graphique,"window22");
                gtk_widget_hide(window22);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button104_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window23;
                window23 = lookup_widget(objet_graphique,"window23");
                gtk_widget_hide(window23);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button105_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window24;
                window24 = lookup_widget(objet_graphique,"window24");
                gtk_widget_hide(window24);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button106_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window25;
                window25 = lookup_widget(objet_graphique,"window25");
                gtk_widget_hide(window25);
                window14 = create_window14();
		gtk_widget_show(window14);
}

/* afficher medecin ID*/
void on_button107_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
	int ID,existe;
	char temp[10000]="";
	GtkWidget *window26;
	window26 = lookup_widget(objet_graphique,"window26");
	GtkWidget *entry154;
	entry154= lookup_widget(objet_graphique,"entry154");
	GtkWidget *label117;
	label117= lookup_widget(GTK_WIDGET(window26),"label117");
	ID= atoi( gtk_entry_get_text(GTK_ENTRY(entry154)));
	Medecin M;
	existe=existence_medecin_ID("medecin.txt",M,ID);
	if (existe==1)
	{FILE*f;
char fichier_medecin[]="medecin.txt";

f=fopen(fichier_medecin,"rb");
if(f!=NULL)
{
	fread(&M,sizeof(Medecin),1,f);
   do  
  {
        if(ID==M.ID)
        { 
        char buf[200]="";	
	char buf0[50]="NOM: ";
	char buf1[50]="PRENOM: ";
	char buf2[50]="SEXE: ";
	char buf3[50]="ROLE: ";
	char buf4[50]="CIN: ";
	char buf5[50]="AGE: ";
	char buf6[50]="ID: ";
	char buf7[50]="Date De Naissance: ";
	char buf8[50]="Date D'Embauche: ";
sprintf(buf,"%s %s  %s %s  %s %s  %s %ld  %s %d  %s %ld  %s %ld  %s %d %d %d  %s %d %d %d",buf0,M.nom,buf1,M.prenom,buf2,M.sexe,buf3,M.role,buf4,M.cin,buf5,
M.age,buf6,M.ID,buf7,M.date_naissance.jour,M.date_naissance.mois,
M.date_naissance.annee,buf8,M.date_embauche.jour,M.date_embauche.mois,M.date_embauche.annee);
strcat(temp,buf);
strcat(temp,"\n");

}
  }
  while(((fread(&M,sizeof(Medecin),1,f))!=0)&&(feof(f)!=1));
}
else
{
strcat(temp,"erreur lors de l'ouverture du fichier_medecin\n");
}
fclose(f);}
else {
strcat(temp,"Le medecin n'existe pas\n");
}
 gtk_label_set_text(GTK_LABEL(label117),temp);
}


void on_button110_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window26;
                window26 = lookup_widget(objet_graphique,"window26");
                gtk_widget_hide(window26);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button109_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window27;
                window27 = lookup_widget(objet_graphique,"window27");
                gtk_widget_hide(window27);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button108_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button111_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button112_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window28;
                window28 = lookup_widget(objet_graphique,"window28");
                gtk_widget_hide(window28);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button113_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window2;
                window2 = lookup_widget(objet_graphique,"window2");
                gtk_widget_hide(window2);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button114_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window3;
                window3 = lookup_widget(objet_graphique,"window3");
                gtk_widget_hide(window3);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button115_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window4;
                window4 = lookup_widget(objet_graphique,"window4");
                gtk_widget_hide(window4);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button116_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window5;
                window5 = lookup_widget(objet_graphique,"window5");
                gtk_widget_hide(window5);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button117_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window6;
                window6 = lookup_widget(objet_graphique,"window6");
                gtk_widget_hide(window6);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button118_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window7;
                window7 = lookup_widget(objet_graphique,"window7");
                gtk_widget_hide(window7);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button119_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window8;
                window8 = lookup_widget(objet_graphique,"window8");
                gtk_widget_hide(window8);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button120_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window9;
                window9 = lookup_widget(objet_graphique,"window9");
                gtk_widget_hide(window9);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button121_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window10;
                window10 = lookup_widget(objet_graphique,"window10");
                gtk_widget_hide(window10);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button122_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window11;
                window11 = lookup_widget(objet_graphique,"window11");
                gtk_widget_hide(window11);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button123_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window12;
                window12 = lookup_widget(objet_graphique,"window12");
                gtk_widget_hide(window12);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button124_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window13;
                window13 = lookup_widget(objet_graphique,"window13");
                gtk_widget_hide(window13);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button125_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window15;
                window15 = lookup_widget(objet_graphique,"window15");
                gtk_widget_hide(window15);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button126_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window16;
                window16 = lookup_widget(objet_graphique,"window16");
                gtk_widget_hide(window16);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button127_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window17;
                window17 = lookup_widget(objet_graphique,"window17");
                gtk_widget_hide(window17);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button128_clicked          (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window18;
                window18 = lookup_widget(objet_graphique,"window18");
                gtk_widget_hide(window18);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button129_clicked (GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window14;
                GtkWidget *window19;
                window19 = lookup_widget(objet_graphique,"window19");
                gtk_widget_hide(window19);
                window14 = create_window14();
		gtk_widget_show(window14);
}


void on_button71_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window13;
                GtkWidget *window10;
                window10 = lookup_widget(objet_graphique,"window10");
                gtk_widget_hide(window10);
                window13 = create_window13();
		gtk_widget_show(window13);
}


void on_button70_clicked(GtkWidget *objet_graphique,gpointer user_data)
{
		GtkWidget *window16;
                GtkWidget *window11;
                window11 = lookup_widget(objet_graphique,"window11");
                gtk_widget_hide(window11);
                window16 = create_window16();
		gtk_widget_show(window16);
}


void on_button44_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button45_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button46_clicked (GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button47_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button48_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button50_clicked (GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button49_clicked (GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button51_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button72_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button73_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button74_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button75_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button76_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button77_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button79_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button78_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button80_clicked(GtkWidget *objet_graphique,gpointer user_data)
{

}


void on_button69_clicked (GtkWidget *objet_graphique,gpointer user_data)
{

}

